<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        //效果没出来
        function changeCode() {
            document.getElementById("code").src = "/validateCode/img";
        }
    </script>
</head>
<body>
<form>
    用户名:<input type="text" name="username"><br/>
    密&emsp;码:<input type="password" name="password"><br/>
    验证码：<input type="text" name="imgCode"><img src="/validateCode/img" id="code" onclick="changeCode"><br/>
    <input type="button" value="注册">
</form>

</body>
</html>
